//
// Created by lijinpeng on 2022/4/3.
//

#ifndef TSIENEDITOR_DISPLAYBASIC_H
#define TSIENEDITOR_DISPLAYBASIC_H

#include <QPen>
#include "QColor"
#include "QBitmap"
#include "QBrush"

struct Color {
    QString name;
    QColor color;
    bool flicker;
};
struct Stipple {
    QString name;
    QVector<QVector<int>> bitmap;
    int width;
    int height;
};
struct LineStyle {
    QString name;
    int size;
    QVector<qreal> pattern;
};
enum class FillStyle {
    Outline, Solid, X, Stipple, OutlineStipple
};

FillStyle ParserFillStyle(const QString &name);

struct Packet {
    QString name;
    QString stipple_name;
    QString line_style_name;
    QString fill_color_name;
    QString out_line_color_name;
    FillStyle fill_style_name;
    QBrush brush;
    QPen out_line;


};

#endif //TSIENEDITOR_DISPLAYBASIC_H
